import React from 'react'

import {Button} from 'antd'

import AuthoritySelect from "./AuthoritySelect"

import { WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default function WeiboBar(props) {
    const {onAuthType, onAuthRange, authType, authRange, saveClick, cancelClick, publishClick,disabled, className = "", state,...rest} = props
    return (
        <div className={"wea-weibo-weibo-bar " + className} {...rest}>
            {/*<AuthoritySelect*/}
                {/*onType={onAuthType}*/}
                {/*onRange={onAuthRange}*/}
                {/*defaultType={authType}*/}
                {/*defaultRange={authRange}*/}
                {/*className="wea-wwb-authority"*/}
            {/*/>*/}
            {
                cancelClick ? (
                    <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@umkjzl`} onClick={cancelClick} type="ghost" className="wea-wwb-cancel">{getLabel(31129, "取消")}</Button>
                ) : ""
            }
            {
                publishClick ? (
                    <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@n7q3yf`}  disabled={disabled} onClick={publishClick} type="primary" className="wea-wwb-publish">{getLabel(114,"发布")}</Button>
                ) : ""
            }
            {
                saveClick ? (
                    <Button ecId={`${this && this.props && this.props.ecId || ''}_Button@myqer5`} onClick={saveClick} type="primary" className="wea-wwb-save">{getLabel(30986,"保存")}</Button>
                ) : ""
            }
        </div>
    )
}